package com.frank.game.derivative;

import com.frank.game.base.unit.Unit;

/**
 * @deprecated:填充物
 * @author frank
 * @date 2015年12月15日
 */
public class Filler extends Unit {
	
	private FillerType type;
	
	public FillerType getType() {
		return type;
	}
	
	public Filler(int x, int y, int z, FillerType type) {
		this.type = type;
		this.x = x;
		this.y = y;
		this.z = z;
	}
	
	public enum FillerType {
		/**空气**/
		air,
		/**土壤**/
		soil,
		/**水**/
		water,
		/**岩石**/
		rock,
		/**矿物**/
		mineral
	}
	public String toString() {
		String name = "";
		switch (this.type) {
		case air:
			name = "空气";
			break;
		case soil:
			name = "土壤";		
			break;
		case water:
			name = "水";
			break;
		case rock:
			name = "岩石";
			break;
		case mineral:
			name = "矿物";
			break;
		default:
			name = "其他";
			break;
		}
		return name;
	}
}
